DiagramElementParam
O parâmetro do elemento diagrama.
Herda de: NotifiableObject
Implementa: IDiagramElementParam, IAsyncPersistable, INotifyPropertyChanging, INotifyPropertyChanged, IAttributesEntity, IHandledDiagramElementParam
Propriedades
public IList<Attribute> Attributes { get; }
value = diagramElementParam.Attributes
Atributos.
public bool CanChangeValue { get; set; }
value = diagramElementParam.CanChangeValue
diagramElementParam.CanChangeValue = value
Pode mudar de valor.
public bool CanOptimize { get; set; }
value = diagramElementParam.CanOptimize
diagramElementParam.CanOptimize = value
Verificar pode otimizar o parâmetro.
public bool IgnoreOnSave { get; set; }
value = diagramElementParam.IgnoreOnSave
diagramElementParam.IgnoreOnSave = value
Ignorar ao salvar.
public bool IsDefault { get; }
value = diagramElementParam.IsDefault
O valor padrão é especificado.
public Func<SettingsStorage, CancellationToken, ValueTask<T>> LoadHandler { get; set; }
value = diagramElementParam.LoadHandler
diagramElementParam.LoadHandler = value
O parâmetro valor de carregamento manipulador.
public string Name { get; set; }
value = diagramElementParam.Name
diagramElementParam.Name = value
Nome.
public bool NotifyOnChanged { get; set; }
value = diagramElementParam.NotifyOnChanged
diagramElementParam.NotifyOnChanged = value
Levantar o evento alterado quando a propriedade é alterada.
public Func<T, CancellationToken, ValueTask<SettingsStorage>> SaveHandler { get; set; }
value = diagramElementParam.SaveHandler
diagramElementParam.SaveHandler = value
O parâmetro valor de salvamento do manipulador.
public virtual T Value { get; set; }
value = diagramElementParam.Value
diagramElementParam.Value = value
O valor do parâmetro.
public Func<T, T, bool> ValueValidating { get; set; }
value = diagramElementParam.ValueValidating
diagramElementParam.ValueValidating = value
Validar o valor do parâmetro.
Métodos
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = diagramElementParam.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Retorna: Task
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = diagramElementParam.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Retorna: Task
public DiagramElementParam<T> SetBasic(bool isBasic)
result = diagramElementParam.SetBasic(isBasic)
Para definir o atributo BasicSettingAttribute para o parâmetro elemento diagrama.
- isBasic
- É parâmetro básico.
Retorna: O parâmetro do elemento diagrama.
public DiagramElementParam<T> SetCanOptimize(bool value)
result = diagramElementParam.SetCanOptimize(value)
Para modificar CanOptimize.
- value
- Valor.
Retorna: O parâmetro do elemento diagrama.
public DiagramElementParam<T> SetDisplay(string groupName, string displayName, string description, int order)
result = diagramElementParam.SetDisplay(groupName, displayName, description, order)
Para definir o atributo DisplayAttribute para o parâmetro elemento diagrama.
- groupName
- A categoria do parâmetro do elemento diagrama.
- displayName
- O nome do ecrã.
- description
- A descrição do parâmetro do elemento diagrama.
- order
- A ordem de propriedade.
Retorna: O parâmetro do elemento diagrama.
public DiagramElementParam<T> SetEditor<TEditor>(TEditor editor)
result = diagramElementParam.SetEditor(editor)
Para adicionar o atributo Atributo para o parâmetro elemento diagrama.
- editor
- Atributo.
Retorna: O parâmetro do elemento diagrama.
public DiagramElementParam<T> SetExpandable(bool expandable)
result = diagramElementParam.SetExpandable(expandable)
Para definir o atributo ExpandableObjectConverter para o parâmetro elemento diagrama.
- expandable
- Valor.
Retorna: O parâmetro do elemento diagrama.
public DiagramElementParam<T> SetNonBrowsable(bool nonBrowsable)
result = diagramElementParam.SetNonBrowsable(nonBrowsable)
Para definir o atributo BrowsableAttribute para o parâmetro elemento diagrama.
- nonBrowsable
- Parâmetro oculto.
Retorna: O parâmetro do elemento diagrama.
public DiagramElementParam<T> SetReadOnly(bool readOnly)
result = diagramElementParam.SetReadOnly(readOnly)
Para definir o atributo ReadOnlyAttribute para o parâmetro elemento diagrama.
- readOnly
- Só para leitura.
Retorna: O parâmetro do elemento diagrama.
public DiagramElementParam<T> SetRequired(bool required)
result = diagramElementParam.SetRequired(required)
Set RequiredAttribute: the parameter cannot be left without a value.
- required
- Whether the parameter is required.
Retorna: The parameter.
public void SetValueWithIgnoreOnSave(object value)
diagramElementParam.SetValueWithIgnoreOnSave(value)
Define o valor e ignore- o ao salvar as configurações.
- value
- Valor.
public override string ToString()
result = diagramElementParam.ToString()
Converter para uma representação de linha.
Retorna: Desempenho de cordas.
Eventos
public event Action<T> ValueChanged
diagramElementParam.ValueChanged += handler
O parâmetro valor do evento de mudança.
public event Action<T, T> ValueChanging
diagramElementParam.ValueChanging += handler
O valor do parâmetro alterar o evento inicial.